From: Rob Church Date: Tue, 5 Jun 2007 13:30:48 +0000 (+0000) Subject: (bug 10055) Populate email address and real name properties of User objects passed... X-Git-Tag: 1.31.0-rc.0~52661 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=e66412fc34f5f3a0721062c00545be78833bf3cd;p=lhc%2Fweb%2Fwiklou.git (bug 10055) Populate email address and real name properties of User objects passed to the 'AbortNewAccount' hook --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7736a6ca9e..446032f543 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -59,6 +59,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN see docs/hooks.txt for details * (bug 9769) Provide "watch this page" toggle on protection form * (bug 9886) Provide clear example "stub link" in Special:Preferences +* (bug 10055) Populate email address and real name properties of User objects + passed to the 'AbortNewAccount' hook == Bugfixes since 1.10 == diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 7fa01d2189..f5c6a51f96 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -265,6 +265,11 @@ class LoginForm { $this->mainLoginForm( wfMsg( 'passwordtooshort', $wgMinimalPasswordLength ) ); return false; } + + # Set some additional data so the AbortNewAccount hook can be + # used for more than just username validation + $u->setEmail( $this->mEmail ); + $u->setRealName( $this->mRealName ); $abortError = ''; if( !wfRunHooks( 'AbortNewAccount', array( $u, &$abortError ) ) ) {